import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;


public class Frame extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JPanel contentPane;
	private Pic pic;	

	/**
	 * Create the frame.
	 * @param main 
	 */
	public Frame(Main main) {
		pic = new Pic(main);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(0, 0, 300	, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		
		this.add(pic);		

		setAlwaysOnTop(true);
		this.setVisible(true);
	}
	
	
	public void update(){
		repaint();
	}

}
